package com.ilearn.iodata.iolingo.service;

import com.ilearn.iodata.iolingo.entities.ApiMetadata;
import com.ilearn.iodata.iolingo.entities.EdmTypeTrnsf;
import com.ilearn.iodata.iolingo.mapper.ApiMetadataMapper;
import com.ilearn.iodata.iolingo.mapper.EdmTypeTrnsfMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EdmTypeTrnsfService {
    @Autowired
    private EdmTypeTrnsfMapper edmTypeTrnsfMapper;

    @Autowired
    private ApiMetadataMapper apiMetadataMapper;

    public List<EdmTypeTrnsf> getEdmTypeTrnsf(){
         return edmTypeTrnsfMapper.selectAll();
    }



    public List<ApiMetadata> getApiMetadata(String apiName){
         return apiMetadataMapper.selectByApiName(apiName);
    }


    public List<ApiMetadata> getAllApiMetadata(){
        return apiMetadataMapper.selectAll();
    }


}
